package org.scalacn.easyscala.snippet

import _root_.scala.xml.{NodeSeq, Text}
import _root_.net.liftweb.util._
import Helpers._
import _root_.net.liftweb.common._
import _root_.net.liftweb.http._
import SHtml._
import _root_.net.liftweb.http.js._
import JE._
import JsCmds._

import org.scalacn.easyscala.actor._
import org.scalacn.easyscala.model._

class Chat {
  def input(in: NodeSeq): NodeSeq = { 
    def doBind(form: NodeSeq) = {
      bind("edit", form,
      "msg" -> textarea("Hello", v => MessageActor() ! MessageActor.AddMessage(Message.create.context(v)),("rows","3"),("id","msginput"),("class","input")) 
     )
	}
   doBind(in)
}
}
